const tokenName = 'BASEVUE_TOKEN'

export const setToken = (token) => {
  window.sessionStorage.setItem(tokenName, token)
}

export const getToken = () => {
  const str = window.sessionStorage.getItem(tokenName)
  if (!str) return null
  return str
}
